package com.allen.retrofit2_rxjava2.view.selectImage.entity;

import android.graphics.BitmapFactory;
import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by lierdong on 2016/12/1.
 */
public class ChooseUploadParam implements Parcelable{

    private int type;
    private String path;

    public ChooseUploadParam(){

    }

    protected ChooseUploadParam(Parcel in) {
        type = in.readInt();
        path = in.readString();
    }

    public static final Creator<ChooseUploadParam> CREATOR = new Creator<ChooseUploadParam>() {
        @Override
        public ChooseUploadParam createFromParcel(Parcel in) {
            return new ChooseUploadParam(in);
        }

        @Override
        public ChooseUploadParam[] newArray(int size) {
            return new ChooseUploadParam[size];
        }
    };

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(type);
        dest.writeString(path);
    }




}
